public class Test3_1 {
    public static void main(String[] args) {
        for (int i = 100; i < 1000; i++) {
            int hundreds = i / 100;
            int tens = (i / 10) % 10;
            int units = i % 10;
            if (hundreds * hundreds * hundreds + tens * tens * tens + units * units * units == i) {
                System.out.print(i + ",");
            }
        }
        System.out.println();
    }
}
